home *** CD-ROM | disk | FTP | other *** search
-
-
-
- List(Rel2) ARP User's Manual List(Rel2)
-
-
-
- NAME
- List - List contents of a directory
-
- SYNOPSIS
- LIST DIR P=PAT/K DATES/S KEYS/S NODATES/S S/K SINCE/K SORT/S
- TO/K UPTO/K QUICK/S
-
- DESCRIPTION
- List displays the contents of a given directory. By
- contents, we mean the names of the subordinate files and
- directories, not the file data. Typing the List command by
- itself with no parameters generates a listing of the current
- directory.
-
- THE LISTING DISPLAY
- List displays your files and directories one per line, with
- more information about each file displayed to the right of
- the filename. The fields which may appear in a Listed file
- are
-
- name [KEY] size/type protection date time
- :comment
-
- Methods are provided for getting a selective listing of
- files, as well as suppressing/adding most of the above
- display elements. A description of each one of the above
- elements is given below:
-
- Name: The name of the file or directory.
-
- [KEY]: This is the actual block number of the file
- or directory block header. This is not
- displayed by default, you must use the KEYS
- switch to generate this element of the
- listing.
-
- size/type: This element gives the size of the file in
- bytes, or the string "empty" if the file is
- empty. If this is a directory and not file,
- then the type of the file ("Dir") will
- appear here.
-
- protection: The protection bits of the current file, in
- the order rwed. If any of these is
- disabled, a dash (-) will appear in its
- place. rwed stand for Read Write Execute and
- Deletable.
-
- date time: The date and time of the last modification
- to the file or directory. The format of the
- date display is determined by the value of
- the environment variable dateformat. These
-
-
-
- Page 1 (printed 2/22/88)
-
-
-
-
-
-
- List(Rel2) ARP User's Manual List(Rel2)
-
-
-
- elements of the listing appear by default,
- but may be selectively added or subtracted
- by using the DATES NODATES keywords.
-
- comment: The comment as set by Filenote. If no
- Filenote exists, this field will not be
- displayed. Note that it is displayed on a
- line by itself, preceeded by a colon.
-
- SELECTIVE LISTING OF FILES
- The methods described in this section allow you to view a
- portion of the files and directories on your disks. Ways
- exist to generate a list of files that conform to a certain
- pattern, or that were created/modified before or after a
- certain date. You may also combine these options, for
- example, you may get a list of all files which end in .c and
- were created or modified since a certain date. These options
- are described below:
-
- DIR - List this directory instead of the current directory.
- This parameter may be a filename, in which case the
- single file is shown. You may also use any legal
- ARP pattern in this position, in which case the
- files and directories listed will be those which
- match the pattern, if any. Note that only the ARP
- List has the capability, this is beyond the original
- BCPL List.
-
- PAT - List only files and directories which match the
- pattern. You must specify the keyword PAT or its
- abbreviation P. This is no longer truly necessary
- with the expanded capabilities of the ARP List,
- since it is usually more convenient to simply
- include the pattern in the directory specification
- as described above. It is included for BCPL
- compatibility.
-
- S - This searches for an occurance of the substring anywhere
- within the directory name or filename. Think of
- this as a short form of "List PAT *substring*" or a
- long form of "List *substring*". List will reject
- any attempts to combine the use of PAT and S.
- Wildcards in the initial DIR argument override the S
- argument. Again, this is no longer truly needed,
- but is included for compatibility with existing
- batch files.
-
- SINCE - While the pattern matching options above filter
- files and directories on the basis of their names,
- this option, and the following UPTO option, filter
- out files based on their last modification date.
- SINCE displays only files which have been created or
-
-
-
- Page 2 (printed 2/22/88)
-
-
-
-
-
-
- List(Rel2) ARP User's Manual List(Rel2)
-
-
-
- modified on or later than the specified date. All
- older files are not displayed. You may specify the
- date in the currently defined dateformat (see
- Environment Variables) or you may use a word such as
- SUNDAY, TODAY, YESTERDAY, etc.
-
- UPTO - The inverse of SINCE, this option displays only files
- whose files and directories have been modified or
- created on or before the specified date. Files
- younger than this date are not dispalyed. See SINCE
- for a description of the date format list expects.
-
- ADJUSTING THE DISPLAY
- The options below allow you to alter the format of the
- display listing, or to send it to another file or output
- display device (that's usually a printer).
-
- TO - You can specify a file or a device you wish the listing
- to be sent to using this keyword. If not specified,
- the default of the current window will be used.
-
- DATES - Forces date and time information to be displayed in
- the current dateformat. This is the default.
-
- NODATES - Will not display time and date information, only
- the filename, size, protection and comment fields
- will be displayed.
-
- QUICK - Displays only the filename field, one filename per
- line. You can combine this with other options such
- as DATES and KEYS to selectively enable these
- fields.
-
- KEYS - Displays the block number of each file header or
- directory header.
-
- SORT - Sorts the file and directory names into ascending
- alphabetical order. Case is disregarded. Note that
- this is an option available only with the ARP list.
-
- ENVIRONMENT VARIABLES
- The ARP List uses the same dateformat variable as used by
- the ARP Date command, and in essentially the same way. If
- it is not defined, or if it has an illegal value, the
- default AmigaDOS display and input is used. Otherwise, the
- display and the input of dates is determined as follows:
-
- 0 - AmigaDOS format DD-MMM-YY.
-
- 1 - International format YY-MM-DD.
-
- 2 - U.S. format MM-DD-YY.
-
-
-
- Page 3 (printed 2/22/88)
-
-
-
-
-
-
- List(Rel2) ARP User's Manual List(Rel2)
-
-
-
- 3 - Canada DD-MM-YY
-
- If you prefix the above numbers with a dash, then the
- display of names like TODAY, MONDAY, FUTURE, etc., will be
- disabled and the format string as defined above will be used
- exclusively. Note that this governs the format that List
- expects as input as well as the format List uses for
- display.
-
- EXAMPLES
- List df1:*.c SINCE WEDNESDAY
- Displays all files in df1: ending with the characters "*.c"
- who were modified later than TUESDAY at 00:00 hours.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 4 (printed 2/22/88)
-
-
-
-